package com.laxcen.basiclib.core.bridgewebview.bean;

public class AjaxData {
    /**
     * -1 用户取消
     * 0 请求失败
     * 1 开始请求/上传
     * 2 请求中/上传中
     * 3 请求/上传完成
     * 4 全部请求/上传完成
     */
    public final static int STATUS_USER_CANCEL = -1;
    public final static int STATUS_NET_ERROR = 0;
    public final static int STATUS_PREVIEW_UPLOAD = 1;
    public final static int STATUS_UPLOADING = 2;
    public final static int STATUS_UPLOAD_COMPLETE = 3;
    public final static int STATUS_ALL_COMPLETE = 4;
    public final static int STATUS_TIME_OUT = 5;
    private int status ;//状态
    private float progress;//进度
    private int position;//当前文件位置
    private long total;//总数量
    private String msg;//提示信息
    private String data;//服务的返回数据

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }



    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public float getProgress() {
        return progress;
    }

    public void setProgress(float progress) {
        this.progress = progress;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
